home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5930 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.lpr.carel.fi!usenet
  2. From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: REBOOTING?
  5. Date: Wed, 07 Feb 1996 16:31:22 +0200
  6. Organization: Carelcomp Forest
  7. Message-ID: <3118B7BA.6C5E@cmt.lpr.mail.carel.fi>
  8. References: <4f5rkk$lpt@news.cp10.es.xerox.com>
  9. NNTP-Posting-Host: renoir.cclahti.carel.fi
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b6a (WinNT; I)
  14.  
  15. EDB wrote:
  16. > C/C++ code to warm boot from DOS:
  17. >         void (far *pf)() = 0xffff0000;
  18. >         int far *magic = (int far *) 0x00400072;
  19. >         *magic = 0x1234;
  20. >         (*pf)();
  21. > C/C++ code to warm boot from Windows 3.1:
  22. >         EXITWINDOWS(EW_REBOOTSYSTEM, 0);
  23. > If you meant some other system, you're on your own...
  24. > - Eric
  25.  
  26. If you have SMARTDRV or similar running, the results of the first example may surprise 
  27. you... :) Also, it doesn't work in V86 mode (eg. running EMM386). To see more about 
  28. this subject, look at comp.os.msdos.programming ng. The discussion has been going on 
  29. for quite some time now.
  30.  
  31. Later,
  32.  AriL
  33. -- 
  34. All my opinions are mine and mine alone.
  35.